]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Add a separate ShellMenu GIR file for introspecting the copy/paste code
authorJasper St. Pierre <jstpierre@mecheye.net>
Thu, 9 May 2013 19:14:52 +0000 (15:14 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 13 May 2013 22:34:26 +0000 (18:34 -0400)
We'll need some of these pieces to be introspectable when we port to
GtkMenuTrackerItem. Due to technical limitations in introspection, we
can't put Gtk-prefixed items in the shell namespace, so add them to
a new introspection library instead.

https://bugzilla.gnome.org/show_bug.cgi?id=700257

src/Makefile.am

index e60daf261f35084b80ca4a20ca0ff10db14af5fd..e53825d3de4d352cf07dde447fb07dc98a37e234 100644 (file)
@@ -291,12 +291,32 @@ libgnome_shell_la_LIBADD =                \
 
 libgnome_shell_la_CPPFLAGS = $(gnome_shell_cflags)
 
-Shell-0.1.gir: libgnome-shell.la St-1.0.gir
+ShellMenu-0.1.gir: libgnome-shell.la
+ShellMenu_0_1_gir_INCLUDES = Gio-2.0
+ShellMenu_0_1_gir_CFLAGS = $(libgnome_shell_la_CPPFLAGS) -I $(srcdir)
+ShellMenu_0_1_gir_LIBS = libgnome-shell.la
+Shell_0_1_gir_SCANNERFLAGS =   \
+       $(if $(BLUETOOTH_DIR),-L $(BLUETOOTH_DIR),)
+ShellMenu_0_1_gir_FILES = \
+       gtkactionmuxer.h                \
+       gtkactionmuxer.c                \
+       gtkactionobservable.h           \
+       gtkactionobservable.c           \
+       gtkactionobserver.h             \
+       gtkactionobserver.c             \
+       $(NULL)
+ShellMenu_0_1_gir_SCANNERFLAGS = --namespace=ShellMenu --identifier-prefix=Gtk
+INTROSPECTION_GIRS += ShellMenu-0.1.gir
+CLEANFILES += ShellMenu-0.1.gir
+
+Shell-0.1.gir: libgnome-shell.la St-1.0.gir ShellMenu-0.1.gir
 Shell_0_1_gir_INCLUDES = Clutter-1.0 ClutterX11-1.0 Meta-3.0 TelepathyGLib-0.12 Soup-2.4 GMenu-3.0 NetworkManager-1.0 NMClient-1.0
 Shell_0_1_gir_CFLAGS = $(libgnome_shell_la_CPPFLAGS) -I $(srcdir)
 Shell_0_1_gir_LIBS = libgnome-shell.la
 Shell_0_1_gir_FILES = $(libgnome_shell_la_gir_sources)
-Shell_0_1_gir_SCANNERFLAGS = --include-uninstalled=$(builddir)/St-1.0.gir \
+Shell_0_1_gir_SCANNERFLAGS =   \
+       --include-uninstalled=$(builddir)/St-1.0.gir \
+       --include-uninstalled=$(builddir)/ShellMenu-0.1.gir \
        --add-include-path=$(MUTTER_GIR_DIR) $(if $(BLUETOOTH_DIR),-L $(BLUETOOTH_DIR),)
 INTROSPECTION_GIRS += Shell-0.1.gir
 CLEANFILES += Shell-0.1.gir